]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Remove set-but-unused variable
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Mar 2026 00:16:56 +0000 (01:16 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Mar 2026 00:16:56 +0000 (01:16 +0100)
The variable is set, but never read. Indeed, it does not exist
in the original Firefox code the method is based on.

Remove it to shut up a new gcc warning (-Wunused-but-set-variable).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4142>

src/shell-keyring-prompt.c

index 9a518c86cc6c3d746787e8adc3fad25baebcd9e9..821505bc40a9169d17b366dc2c23451312fb1890 100644 (file)
@@ -601,7 +601,7 @@ shell_keyring_prompt_get_confirm_actor (ShellKeyringPrompt *self)
 static guint
 calculate_password_strength (const gchar *password)
 {
-  int upper, lower, digit, misc;
+  int upper, digit, misc;
   gdouble pwstrength;
   int length, i;
 
@@ -619,7 +619,6 @@ calculate_password_strength (const gchar *password)
     return 0;
 
   upper = 0;
-  lower = 0;
   digit = 0;
   misc = 0;
 
@@ -627,8 +626,6 @@ calculate_password_strength (const gchar *password)
     {
       if (g_ascii_isdigit (password[i]))
         digit++;
-      else if (g_ascii_islower (password[i]))
-        lower++;
       else if (g_ascii_isupper (password[i]))
         upper++;
       else